package com.zg.invoice.enm;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.apache.commons.lang.StringUtils;

@Getter
@AllArgsConstructor
public enum InvoiceSystemEnum {
    //开票系统
    NUO_NUO("1","诺诺"),
    LE_QI("2","乐企");

    private  String code;
    private  String desc;
    
    public static Boolean checkHave(String code){
        if(StringUtils.isEmpty(code)){
            return false;
        }
        for(InvoiceSystemEnum invoiceSystemEnum:InvoiceSystemEnum.values()){
            if(invoiceSystemEnum.getCode().equals(code)){
                return true;
            }
        }
        return false;
    }
}
